package es.bwain.xprt.preproduction;

public class HtmlAttribute {

	private String name;
	private boolean passthrough = true;
	private boolean required = false;
	private String defaultValue;
	private String fixedValue;
	private boolean xpathValue = false;
	private String concatBefore;
	private String concatAfter;

	public HtmlAttribute(String name) {
		HtmlTemplate.put(name);
		this.setName(name);
	}
	
	public HtmlAttribute(String name, boolean passthrough) {
		HtmlTemplate.put(name);
		this.setName(name);
		this.setPassthrough(passthrough);
	}
	
	public HtmlAttribute(String name, boolean passthrough, boolean required) {
		HtmlTemplate.put(name);
		this.setName(name);
		this.setPassthrough(passthrough);
		this.setRequired(required);
	}
	
	public HtmlAttribute(String name, boolean passthrough, boolean required, String defaultValue) {
		HtmlTemplate.put(name);
		this.setName(name);
		this.setPassthrough(passthrough);
		this.setRequired(required);
		this.setDefaultValue(defaultValue);
	}
	
	public HtmlAttribute(String name, boolean passthrough, boolean required, String defaultValue, String fixedValue) {
		HtmlTemplate.put(name);
		this.setName(name);
		this.setPassthrough(passthrough);
		this.setRequired(required);
		this.setDefaultValue(defaultValue);
		this.setFixedValue(fixedValue);
	}
	
	public HtmlAttribute(String name, boolean passthrough, boolean required, String defaultValue, String fixedValue, boolean xpathValue) {
		HtmlTemplate.put(name);
		this.setName(name);
		this.setPassthrough(passthrough);
		this.setRequired(required);
		this.setDefaultValue(defaultValue);
		this.setFixedValue(fixedValue);
		this.setXpathValue(xpathValue);
	}
	
	public HtmlAttribute(String name, boolean passthrough, boolean required, String defaultValue, String fixedValue, boolean xpathValue, String concatBefore, String concatAfter) {
		HtmlTemplate.put(name);
		this.setName(name);
		this.setPassthrough(passthrough);
		this.setRequired(required);
		this.setDefaultValue(defaultValue);
		this.setFixedValue(fixedValue);
		this.setXpathValue(xpathValue);
		this.setConcatBefore(concatBefore);
		this.setConcatAfter(concatAfter);
	}
	
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isRequired() {
		return required;
	}
	public void setRequired(boolean required) {
		this.required = required;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public String getFixedValue() {
		return fixedValue;
	}
	public void setFixedValue(String fixedValue) {
		this.fixedValue = fixedValue;
	}
	
	public boolean isXpathValue() {
		return xpathValue;
	}

	public void setXpathValue(boolean xpathValue) {
		this.xpathValue = xpathValue;
	}

	public String getConcatBefore() {
		return concatBefore;
	}
	public void setConcatBefore(String concatBefore) {
		this.concatBefore = concatBefore;
	}
	public String getConcatAfter() {
		return concatAfter;
	}
	public void setConcatAfter(String concatAfter) {
		this.concatAfter = concatAfter;
	}
	public boolean isPassthrough() {
		return passthrough;
	}
	public void setPassthrough(boolean passthrough) {
		this.passthrough = passthrough;
	}
	

	
}
